package com.penghaisoft.microwms.common.data.model;


import com.penghaisoft.microwms.common.BaseEntity;
import com.penghaisoft.microwms.common.util.CommonUtils;

/**
 * @Description 仓库model
 * @author gaofeng
 * @date 2017年5月24日 下午3:22:33
 * @version 1.0
 */
public class MdWarehouse extends BaseEntity {

	/**
	 * warehouseId
	 */
	private String warehouseId;

	/**
	 * 仓库编码
	 */
	private String warehouseCode;

	/**
	 * 仓库名称
	 */
	private String warehouseName;

	/**
	 * 工厂编码
	 */
	private String factoryCode;
	private String factoryCodeWk;

	/**
	 * 工厂名称
	 */
	private String factoryName;

	/**
	 * 数据源
	 */
	private String dataSource;

	/**
	 * DB用户
	 */
	private String schame;

	/**
	 * 仓库类型 1 wms成品,2 WMS原材料
	 */
	private String warehouseType;

	public String getWarehouseType() {
		return warehouseType;
	}

	public void setWarehouseType(String warehouseType) {
		this.warehouseType = warehouseType;
	}

	@Override
	public void preInsert() {
		super.preInsert();
		setWarehouseId(CommonUtils.getUUID());
	}

	public String getWarehouseId() {
		return this.warehouseId;
	}

	public void setWarehouseId(String value) {
		this.warehouseId = value;
	}

	public String getWarehouseCode() {
		return this.warehouseCode;
	}

	public void setWarehouseCode(String value) {
		this.warehouseCode = value;
	}

	public String getWarehouseName() {
		return this.warehouseName;
	}

	public void setWarehouseName(String value) {
		this.warehouseName = value;
	}

	public String getFactoryCode() {
		return this.factoryCode;
	}

	public void setFactoryCode(String value) {
		this.factoryCode = value;
	}

	public String getFactoryName() {
		return this.factoryName;
	}

	public void setFactoryName(String value) {
		this.factoryName = value;
	}

	public String getDataSource() {
		return this.dataSource;
	}

	public void setDataSource(String value) {
		this.dataSource = value;
	}

	public String getSchame() {
		return this.schame;
	}

	public void setSchame(String value) {
		this.schame = value;
	}

	public String getFactoryCodeWk() {
		return factoryCodeWk;
	}

	public void setFactoryCodeWk(String factoryCodeWk) {
		this.factoryCodeWk = factoryCodeWk;
	}

}
